﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CCV
{
    public partial class ParametersForm : Form
    {

        public ParametersForm(string xml, string rpt)
        {
            InitializeComponent();
            textBoxXML.Text = xml;
            textBoxRPT.Text = rpt;
        }

        private void buttonLoadXML_Click(object sender, EventArgs e)
        {
            openFileDialog.Filter = "XML Files (.xml)|*.xml|All Files (*.*)|*.*";
            if (openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                
                textBoxXML.Text = openFileDialog.FileName;
            }
        }

        private void buttonLoadRpt_Click(object sender, EventArgs e)
        {
            openFileDialog.Filter = "RPT Files (.rpt)|*.rpt|All Files (*.*)|*.*";
            if (openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                textBoxRPT.Text = openFileDialog.FileName;
            }
        }

        
        public string GetXMLFile()
        {
            return textBoxXML.Text;
        }
          public string GetRPTFile()
        {
            return textBoxRPT.Text;
        }

          private void buttonOK_Click(object sender, EventArgs e)
          {
              DialogResult = System.Windows.Forms.DialogResult.OK;
          }
    }
}
